package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.common.annotation.ParamTuningAnnotation;
import com.jrx.anytxn.param.entity.PrPaymentSequenceTable;
import com.jrx.anytxn.param.mapper.base.PrPaymentSequenceTableMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname ExtPaymentSequenceTableMapper
 * @Description yf
 * @Date 2019/6/13 0013 下午 23:20
 * @author  by Administrator
 */
public interface ExtPaymentSequenceTableMapper extends PrPaymentSequenceTableMapper {

    /**
     * 根据租户ID查询所有
     *
     * @param tenantId 租户Id
     * @return java.util.List<com.jrx.anytxn.param.entity.PrPaymentSequenceTable>
     * @author fan.yang 
     * date: 2019/10/14 0014 下午 15:56
     */
    List<PrPaymentSequenceTable> selectByTenId(String tenantId);

    /**
     * 根据租户ID和还款顺序ID查询此信息
     *
     * @param tenantId          租户ID
     * @param paymentSequenceId 还款顺序ID
     * @return com.jrx.anytxn.param.entity.PrPaymentSequenceTable
     * @author fan.yang
     * date: 2019/10/14 0014 下午 16:05
     */
    PrPaymentSequenceTable selectByPaymentSequenceIdAndTenId(@Param("tenantId") String tenantId, @Param("paymentSequenceId") String paymentSequenceId);

    /**
     * 根据租户ID和还款顺序ID删除此信息
     *
     * @param tenantId          租户ID
     * @param paymentSequenceId 还款顺序ID
     * @return int
     * @author fan.yang
     * date: 2019/10/14 0014 下午 16:37
     */
    @ParamTuningAnnotation
    int deleteByPaymentSequenceIdAndTenId(@Param("tenantId") String tenantId, @Param("paymentSequenceId") String paymentSequenceId);

    /**
     * 根据租户ID和还款顺序ID修改信息
     *
     * @param prPaymentSequenceTable 还款顺序参数
     * @return int
     * @author fan.yang
     * date: 2019/10/14 0014 下午 16:38
     */
    @ParamTuningAnnotation
    int updateByPaymentSequenceIdAndTenId(PrPaymentSequenceTable prPaymentSequenceTable);

}
